<template>
	<view class="content">
		<!-- 		<view class="content-one">
			
		</view> -->
		<view class="content-two">
			<view class="title-box">
				<div class="logo"></div>
				<text>领取积分奖励</text>
			</view>
			<view class="invite-content">
				<span>邀请好友加入设辑AI</span>
				<span class="invite-num1">我的邀请码</span>
				<span class="invite-num2">SSSSSSSSSS</span>
				<view class="invite-btn">
					<button class="btn-style"><span>复制邀请码</span></button>
					<button class="btn-style"><span>复制邀请码</span></button>
				</view>
			</view>
		</view>
		<view class="content-three">
			<view class="invite-msg">
				<view class="msg-box border1">
					<view class="msg-content">
						<view class="msg-num">0</view>
						<view class="msg-title">成功邀请好友数量</view>
					</view>
				</view>
				<view class="msg-box">
					<view class="msg-content">
						<view class="msg-num">0</view>
						<view class="msg-title">获取总积分奖励</view>
					</view>
				</view>
				<view class="msg-box">
					<view class="msg-content">
						<view class="msg-num">0</view>
						<view class="msg-title">成功邀请创作者数量</view>
					</view>
				</view>
				<view class="msg-box border2">
					<view class="msg-content">
						<view class="msg-num">0</view>
						<view class="msg-title">获得总分红（元）</view>
					</view>
				</view>
			</view>
		</view>
		<view class="content-four">
			<view class="invite-list">
				<view class="invite-tab">
					<view class="tab-title" :class="{ 'active-tab':index===0}" @click="changeTab(0)">邀请列表</view>
					<view class="tab-title" :class="{ 'active-tab':index===1}" @click="changeTab(1)">奖励记录</view>
				</view>
				<view class="invite-data">
					<template v-if="index ===0 ">
						<view class="data">
							<img
								src="https://ts4.cn.mm.bing.net/th?id=OIP-C.FBxyIipQnuJJac5k_-a3gQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
								alt="">
							<view class="data-right">
								<view class="name">工作室小王</view>
								<view class="regist-time">注册时间： 03-21 11：43</view>
							</view>
						</view>
						<view class="data">
							<img
								src="https://ts4.cn.mm.bing.net/th?id=OIP-C.FBxyIipQnuJJac5k_-a3gQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
								alt="">
							<view class="data-right">
								<view class="name">工作室小王</view>
								<view class="regist-time">注册时间： 03-21 11：43</view>
							</view>
						</view>
						<view class="data">
							<img
								src="https://ts4.cn.mm.bing.net/th?id=OIP-C.FBxyIipQnuJJac5k_-a3gQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
								alt="">
							<view class="data-right">
								<view class="name">工作室小王</view>
								<view class="regist-time">注册时间： 03-21 11：43</view>
							</view>
						</view>
						<view class="data">
							<img
								src="https://ts4.cn.mm.bing.net/th?id=OIP-C.FBxyIipQnuJJac5k_-a3gQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
								alt="">
							<view class="data-right">
								<view class="name">工作室小王</view>
								<view class="regist-time">注册时间： 03-21 11：43</view>
							</view>
						</view>
						<view class="data">
							<img
								src="https://ts4.cn.mm.bing.net/th?id=OIP-C.FBxyIipQnuJJac5k_-a3gQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
								alt="">
							<view class="data-right">
								<view class="name">工作室小王</view>
								<view class="regist-time">注册时间： 03-21 11：43</view>
							</view>
						</view>
						<view class="data">
							<img
								src="https://ts4.cn.mm.bing.net/th?id=OIP-C.FBxyIipQnuJJac5k_-a3gQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
								alt="">
							<view class="data-right">
								<view class="name">工作室小王</view>
								<view class="regist-time">注册时间： 03-21 11：43</view>
							</view>
						</view>
						<view class="data">
							<img
								src="https://ts4.cn.mm.bing.net/th?id=OIP-C.FBxyIipQnuJJac5k_-a3gQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
								alt="">
							<view class="data-right">
								<view class="name">工作室小王</view>
								<view class="regist-time">注册时间： 03-21 11：43</view>
							</view>
						</view>
					</template>
					<template v-else>
						<view class="data2">
							<view class="data2-title">成功邀请好友积分奖励</view>
							<view class="data2-info">
								<view class="info-left">03-21 11：43</view>
								<view class="info-right">
								<view>+50</view>
								<img src="../../static/star1.png" alt=""></view>
							</view>
						</view>
						<view class="data2">
							<view class="data2-title">成功邀请好友积分奖励</view>
							<view class="data2-info">
								<view class="info-left">03-21 11：43</view>
								<view class="info-right">
								<view>+50</view>
								<img src="../../static/star1.png" alt=""></view>
							</view>
						</view>
						<view class="data2">
							<view class="data2-title">成功邀请好友积分奖励</view>
							<view class="data2-info">
								<view class="info-left">03-21 11：43</view>
								<view class="info-right">
								<view>+50</view>
								<img src="../../static/star1.png" alt=""></view>
							</view>
						</view>
						<view class="data2">
							<view class="data2-title">成功邀请好友积分奖励</view>
							<view class="data2-info">
								<view class="info-left">03-21 11：43</view>
								<view class="info-right">
								<view>+50</view>
								<img src="../../static/star1.png" alt=""></view>
							</view>
						</view>
						<view class="data2">
							<view class="data2-title">成功邀请好友积分奖励</view>
							<view class="data2-info">
								<view class="info-left">03-21 11：43</view>
								<view class="info-right">
								<view>+50</view>
								<img src="../../static/star1.png" alt=""></view>
							</view>
						</view>
						<view class="data2">
							<view class="data2-title">成功邀请好友积分奖励</view>
							<view class="data2-info">
								<view class="info-left">03-21 11：43</view>
								<view class="info-right">
								<view>+50</view>
								<img src="../../static/star1.png" alt=""></view>
							</view>
						</view>
						
						<view class="data2">
							<view class="data2-title">成功邀请好友积分奖励</view>
							<view class="data2-info">
								<view class="info-left">03-21 11：43</view>
								<view class="info-right">
								<view>+50</view>
								<img src="../../static/star1.png" alt=""></view>
							</view>
						</view>
						
						<view class="data2">
							<view class="data2-title">成功邀请好友积分奖励</view>
							<view class="data2-info">
								<view class="info-left">03-21 11：43</view>
								<view class="info-right">
								<view>+50</view>
								<img src="../../static/star1.png" alt=""></view>
							</view>
						</view>
					</template>
				</view>
			</view>

		</view>
		<!-- <view class="black-bg"></view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				index: 1,
			}
		},
		methods: {
			changeTab(index) {
				this.index = index
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		/* width: 100%; */
		// height: 1000rpx;
		margin: 0;
		padding: 0;
	}

	.content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		border: 20rpx solid white;
		background: url('/static/shareBg.png');
		background-size: 100% 100%;
		height: 2500rpx;

		&::after {
			content: '';
			position: absolute;
			background: url('../../static/logox.png') no-repeat;
			width: 220rpx;
			height: 200rpx;
			top: 180rpx;
			box-shadow: 0px 0px 20px 2px;
		}

		.content-one {

			// background-image: linear-gradient(180deg,
			// 		rgba(0, 0, 0, 0.16) 0,
			// 		rgba(0, 0, 0, 1) 50.714284%);
			// position: absolute;
			// left: 0.80625rem;
			width: 100%;
			// background: url(/static/shareBg.jpg) no-repeat;
			background-size: 100% 100%;
			/* width: 100%; */
			height: 1500rpx;
			box-sizing: border-box;
			background: url('../../static/logox.png') no-repeat;
			// position: absolute;
			// top: 50rpx;
		}

		.content-two {
			height: 600rpx;
			width: 90%;
			background-color: rgb(255, 255, 255);
			margin-top: 450rpx;
			border-radius: 30rpx;
			border: 6rpx solid rgb(224, 168, 52);
			margin-bottom: 80rpx;

			&::after {
				content: '';
				position: absolute;
				top: 980rpx;
				left: 10rpx;
				// background-size: 1550rpx 1150rpx;
				transform: scale(1.4);
				background: url('../../static/bstar.png');
				width: 200rpx;
				height: 200rpx;

			}

			&::before {
				content: '';
				position: absolute;
				top: 570rpx;
				left: 550rpx;
				// background-size: 1550rpx 1150rpx;
				transform: scale(0.9);
				background: url('../../static/bstar.png');
				width: 200rpx;
				height: 200rpx;
			}

			.invite-content {
				width: 100%;
				height: 90%;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: space-evenly;
				margin-top: -20rpx;

				.invite-num1 {
					font-size: 40rpx;
					font-family: Source Han Sans CN-Bold;
					font-weight: 700;
				}

				.invite-num2 {
					color: rgba(0, 0, 0, 1);
					font-size: 62rpx;
					font-weight: 900;
				}

				.invite-btn {
					width: 100%;
					display: flex;

					.btn-style {
						background-color: rgba(255, 119, 68, 1);
						border-radius: 100px;

						span {
							color: rgba(255, 255, 255, 1);
							font-size: 30rpx;
							font-weight: 500;
							text-align: center;
							white-space: nowrap;
							line-height: 20rpx;
						}
					}
				}
			}

			.title-box {
				width: 70%;
				height: 100rpx;
				background-color: rgb(255, 170, 0);
				margin: 0 auto;
				margin-top: -50rpx;
				border-radius: 30rpx;
				color: rgba(255, 255, 255, 1);
				font-size: 34.403669724770644rpx;
				font-family: Source Han Sans CN-Bold;
				line-height: 100rpx;
				display: flex;
				justify-content: center;
				font-weight: 700;
				overflow: hidden;
				position: relative;

				.logo {
					// content: '';
					background: url('../../static/star1.png') no-repeat;
					width: 800rpx;
					height: 800rpx;
					transform: scale(0.4);
					position: absolute;
					top: -350rpx;
					left: -380rpx;
					z-index: 9;
					border-radius: 90rpx;
				}
			}
		}

		.content-three {
			width: 90%;
			// height: 400rpx;
			background-color: white;
			margin-bottom: 80rpx;
			border-radius: 30rpx;
			border: 6rpx solid rgb(224, 168, 52);
			padding: 30rpx 30rpx;
			box-sizing: border-box;

			&::after {
				content: '';
				position: absolute;
				top: 1420rpx;
				left: 250rpx;
				// background-size: 1550rpx 1150rpx;
				transform: scale(0.7);
				background: url('../../static/bstar.png');
				width: 200rpx;
				height: 200rpx;

			}

			&::before {
				content: '';
				position: absolute;
				top: 1200rpx;
				left: 570rpx;
				// background-size: 1550rpx 1150rpx;
				transform: scale(0.6);
				background: url('../../static/bstar.png');
				width: 200rpx;
				height: 200rpx;
			}

			.invite-msg {
				width: 100%;
				height: 100%;
				display: flex;
				// flex-direction: ;
				justify-content: center;
				align-items: center;
				flex-wrap: wrap;

				.border1 {
					border-right: 1rpx solid rgb(229, 229, 229);
					border-bottom: 1rpx solid rgb(229, 229, 229);
				}

				.border2 {
					border-left: 1rpx solid rgb(229, 229, 229);
					border-top: 1rpx solid rgb(229, 229, 229);
					margin-top: -3rpx;
					margin-left: -1rpx;
				}

				.msg-box {
					box-sizing: border-box;
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					width: 50%;

					.msg-content {
						// width: 20rpx;
						height: 130rpx;
						flex: 1;
						display: flex;
						flex-direction: column;
						box-sizing: border-box;
						justify-content: center;


						.msg-num {
							margin: 0 auto;
						}

						.msg-title {
							font-size: 14rpx;
							width: 100%;
							// height: 100rpx;
							// transform: scale(0.5);

						}
					}

				}
			}
		}

		.content-four {
			width: 90%;
			height: 800rpx;
			background-color: #fff;
			margin-bottom: 40rpx;
			border-radius: 30rpx;
			border: 6rpx solid rgb(224, 168, 52);
			display: flex;
			justify-content: center;
			padding: 40rpx 0;
			box-sizing: border-box;
			
			&::after {
				content: '';
				position: absolute;
				top: 2300rpx;
				left: 50rpx;
				// background-size: 1550rpx 1150rpx;
				transform: scale(1.7);
				background: url('../../static/bstar.png');
				width: 200rpx;
				height: 200rpx;
			
			}
			
			&::before {
				content: '';
				position: absolute;
				top: 1900rpx;
				left: 570rpx;
				// background-size: 1550rpx 1150rpx;
				transform: scale(0.8);
				background: url('../../static/bstar.png');
				width: 200rpx;
				height: 200rpx;
			}

			.invite-list {
				width: 90%;
				height: 100%;
				// background-color: antiquewhite;
				display: flex;
				flex-direction: column;
				justify-content: flex-start;
				align-items: center;
			}

			.invite-tab {
				width: 100%;
				display: flex;
				justify-content: space-around;
				border-radius: 75rpx;
				border: 4rpx solid rgba(196, 191, 191, 1);
				height: 100rpx;
				line-height: 70rpx;
				margin: 0 auto;
				padding: 10rpx 10rpx;
				box-sizing: border-box;


				.tab-title {
					flex: 1;
					border-radius: 60rpx;
					display: flex;
					justify-content: center;
				}

				.active-tab {
					color: white;
					background-color: black;
					width: 100%;
					height: 100%;
				}
			}

			.invite-data {
				box-sizing: border-box;
				margin-top: 12rpx;
				width: 100%;
				flex: 1;
				overflow: hidden;

				.data2 {
					margin-top: 12rpx;
					width: 100%;
					height: 85rpx;
					display: flex;
					flex-direction: column;
					// background-color: aquamarine;

					.data2-title {
						width: 100%;
						flex: 1;
						// background-color: aqua;
						color: rgba(0, 0, 0, 1);
						font-size: 22rpx;
						font-weight: 700;
					}

					.data2-info {
						width: 100%;
						flex: 1;
						// background-color: yellow;
						display: flex;
						justify-content: space-between;
						color: rgba(61, 61, 61, 1);
						font-size: 17rpx;
						
						.info-left {}

						.info-right { display: flex;}
						img{
							width: 50rpx;
							height: 50rpx;
							margin-top: -10rpx;
						}
					}
				}

				.data {
					width: 100%;
					height: 120rpx;
					// background-color: aqua;
					display: flex;
					justify-content: flex-start;
					align-items: center;
					border-bottom: 4rpx solid #D8D8D8;

					img {
						width: 70rpx;
						height: 70rpx;
						border-radius: 50%;
					}

					.data-right {
						font-size: 18rpx;
						display: flex;
						flex-direction: column;
						justify-content: space-evenly;
						margin-left: 15rpx;
						height: 100%;

						.name {
							font-size: 24rpx;
							font-weight: 500;
						}

						.regist-time {
							font-size: 14rpx;
							color: gray;
						}
					}
				}
			}
		}

		.black-bg {
			width: 100%;
			height: 1000rpx;
			background-color: black;
			margin-top: -10rpx;
		}
	}
</style>